{% extends 'accounts/base.html' %}

{% block content %}
<h2>登录</h2>
<form method="post">
    {% csrf_token %}
    <label>用户名：<input type="text" name="username" required></label><br><br>
    <label>密码：<input type="password" name="password" required></label><br><br>
    <button type="submit">登录</button>
</form>
<p>还没有账号？<a href="{% url 'accounts:register' %}">去注册</a></p>
{% endblock %}
